package com.controller;

import com.service.UserService;
import com.service.impl.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
@Controller
public class UserController {
@Resource
//    @Autowired
//    @Qualifier("userServiceImpl")
    UserService userService;
    public void findAll(){
        System.out.println("Controller层执行");
        userService.findAll();
    }
}
